const router = require('express').Router()

// 导入中间件
const { getUserId } = require('../middleware/users')
const { addCart } = require('../controllers/cart')

// 添加购物车
router.post('/add', getUserId, addCart)

module.exports = router
